import request from '@/utils/request'

export function getVideoInfoApi(id) {
    return request({
        url: `/videoinfo/${id}`,
        method: 'get'
    })
}
export function getVideoInfosApi(videoId,pageNo,pageSize) {
    return request({
        url: `/videoinfo`,
        params: {
          videoId: videoId,
          pageNo: pageNo,
          pageSize: pageSize
        },
        method: 'get'
    })
}
export function getAllVideoInfosApi(videoId) {
    return request({
        url: `/videoinfo/findAll`,
        params: {
          videoId: videoId,
        },
        method: 'get'
    })
}
export function addVideoInfoApi(form) {
    return request({
        url: `/videoinfo`,
        data: form,
        method: 'post'
    })
}
export function updateVideoInfoApi(form) {
    return request({
        url: `/videoinfo`,
        data: form,
        method: 'put'
    })
}
export function delVideoInfoApi(id) {
    return request({
        url: `/videoinfo/${id}`,
        method: 'delete',
    })
}
export function delVideoInfosApi(videoInfos) {
    return request({
        url: `/videoinfo`,
        data: videoInfos,
        method: 'delete'
    })
}
